Skip to content

fix(release): pin candidate review and refresh validation tooling - #351

Merged
acgetchell merged 1 commit into
mainfrom
fix/pre-release-validation
Nov 17, 2026
Merged

acgetchell merged 1 commit into
mainfrom
fix/pre-release-validation

Conversation

@acgetchell

@acgetchell acgetchell commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

Problem

Release-candidate revalidation could resolve HEAD twice and select a different review slot. Capture recovery could print a success receipt before its owner selection was registered.

Changes

  • Use one commit and its saved acceptance throughout staging and publication revalidation. Emit the capture receipt after owner registration succeeds.
  • Consolidate LDLT pivot failure diagnostics and the exact determinant overflow fixture while preserving their assertions.
  • Scope the Gitleaks exception to the frozen Criterion artifact and distinguish leak findings from scanner errors in tests. Isolate the native runner labels in the evidence fixture.
  • Update the managed cargo-machete and dprint versions and refresh the locked Rust and Python dependencies.

Validation

  • just security passed with zero OSV or Gitleaks findings.
  • just ci passed on macOS with 1,141 Rust tests, 199 doctests, and 561 Python tests. Benchmark compilation, exact benchmark smoke tests, and examples passed.
  • just review origin/main completed a fresh included CodeRabbit review of all 11 files with zero findings.

Performance

The Rust edits affect pivot failure diagnostics and test fixtures. The numerical kernels use the same arithmetic, and the benchmark checks exercised the existing workloads.

Summary by CodeRabbit

  • Bug Fixes
    • Improved classification of non-finite, negative, and zero pivots in matrix factorization.
    • Release staging now verifies existing acceptance records against the selected commit and preserves the reviewed evidence.
    • Capture failures no longer change the selected owner.
  • Improvements
    • Exact determinant overflow checks now cover both strict and rounded floating-point conversions.
    • Updated formatting and security-scanning tools.

- Revalidate the same release commit and saved acceptance throughout staging
  and dispatch. Report successful capture after registration succeeds.
- Consolidate LDLT pivot diagnostics and exact determinant overflow coverage.
- Scope the frozen Criterion Gitleaks exception and strengthen scanner and
  native evidence fixtures.
- Refresh managed Cargo tools and locked Rust and Python dependencies.
@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request updates release-candidate verification and commit selection, adds a scoped Gitleaks exception with integration coverage, adjusts numerical error checks, and updates tooling versions and a runner-label fixture.

Changes: Release candidate verification

Layer / File(s) Summary
Acceptance verification and owner selection
tooling/release_candidate.py, tests/tooling/test_candidate_transfer.py, tests/tooling/test_release_context.py
Verification can require an existing acceptance, accepts a commit, and preserves existing acceptance bytes. Tests cover verification behavior, missing acceptance, and capture owner selection.
Commit-pinned staging and publication
tooling/release_candidate.py, tests/tooling/test_candidate_transfer.py, tests/tooling/test_release_context.py
Staging passes one resolved commit through verification and target selection. Publication verifies against the transfer commit. Tests check the commit used for re-verification.

Frozen-run secret-scan exception

Layer / File(s) Summary
Scoped allowlist and scanner tests
.gitleaks.toml, tests/tooling/test_security_integration.py
The allowlist matches the specified run path and encoded field value. Integration tests cover direct, chunked, and encoded representations, other paths, and detection of synthetic credentials.

Numerical determinant and LDLT checks

Layer / File(s) Summary
Determinant overflow assertions
src/exact.rs
The overflow test checks the positive exact sign and NotFinite results for strict and rounded conversion. Separate conversion tests were removed.
LDLT pivot failure classification
src/ldlt.rs
pivot_failure checks for non-finite factors and classifies negative pivots, zero pivots with coupling, and other failed pivots.

Cargo toolchain versions

Layer / File(s) Summary
Tool version updates
pyproject.toml
cargo-machete changes from 0.9.2 to 0.10.1, and dprint changes from 0.64.3 to 0.65.0.

Evidence job fixture

Layer / File(s) Summary
Runner label fixture
tests/tooling/support_evidence.py
Job fixtures receive a copy of the configured runner labels.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Bug fix

Possibly related issues

  • Issue 333: The release-candidate changes reuse the commit and saved acceptance during staging and publication revalidation. The issue also lists other release gates that this pull request does not address.

Possibly related PRs

Suggested labels: rust, python

Merge Risk: Minimal · up to 5e63b

This change pins release-candidate revalidation to one commit and its saved acceptance, and prints the capture receipt only after owner registration succeeds. The other edits are limited to diagnostics, test fixtures, a narrowly scoped secret-scan exception and tooling version updates. No concrete failure was found. One minor uncertainty remains about how the external candidate command handles output when revalidation fails; it is not a known defect.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "fix(release): pin candidate review and refresh validation tooling" matches the main change. The PR pins release-candidate verification to one commit and its saved acceptance record, and it …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "fix(release): pin candidate review and refresh validation tooling" matches the main change. The PR pins release-candidate verification to one commit and its saved acceptance record, and it also covers capture-receipt ordering, LDLT diagnostics, Gitleaks scoping, and tooling updates. The title names the primary change (pinning the candidate review) and the secondary tooling refresh. It is specific and follows a conventional commit style. Its length is 65 characters, which is acceptable.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between f31781e and 5e63bba.

Files ignored due to path filters: 2

  • Cargo.lock is excluded by !**/*.lock
  • uv.lock is excluded by !**/*.lock
Files selected for processing: 9

  • .gitleaks.toml
  • pyproject.toml
  • src/exact.rs
  • src/ldlt.rs
  • tests/tooling/support_evidence.py
  • tests/tooling/test_candidate_transfer.py
  • tests/tooling/test_release_context.py
  • tests/tooling/test_security_integration.py
  • tooling/release_candidate.py

Included review availability: This review used your included allowance. 7 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 8 reviews per hour.

@codecov

codecov Bot commented Nov 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.28%. Comparing base (f31781e) to head (5e63bba).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #351      +/-   ##
==========================================
- Coverage   98.28%   98.28%   -0.01%     
==========================================
  Files          16       16              
  Lines        7772     7756      -16     
==========================================
- Hits         7639     7623      -16     
  Misses        133      133              
Flag Coverage Δ
unittests 98.28% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@acgetchell acgetchell self-assigned this Nov 17, 2026
@acgetchell
acgetchell enabled auto-merge November 17, 2026 03:08
@acgetchell
acgetchell merged commit 531f75e into main Nov 17, 2026
38 checks passed
@acgetchell
acgetchell deleted the fix/pre-release-validation branch November 17, 2026 03:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant